<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/5/25 0025
 * Time: 下午 5:24
 */

namespace app\common\model;

use think\Model;
use think\Db;

class Collection extends Model
{
    /**
     * @param array $arg
     * @param string $field
     * @return false|\PDOStatement|string|\think\Collection
     */
    public function getListByArg(array $arg,$field='*')
    {
        return $this->where($arg)->field($field)->select();
    }

    public function getListByArgOne(array $arg,$field='*')
    {
        return $this->where($arg)->field($field)->find();
    }

}